package chapter04

/**
 * @author: 余辉
 * @blog: https://blog.csdn.net/silentwolfyh
 * descriptions:
 * date: 2024 - 09 - 02 11:04 上午
 */
class Context {
  def textFile(path: String): FileRdd = {
    new FileRdd(path)
  }

  def makeRdd(seq: Seq[String]): SeqRdd = {
    new SeqRdd(seq)
  }

  def runJob(rdd: Rdd): Unit = {
    val iter = rdd.iter
    iter.foreach(println)
  }
}